<!DOCTYPE html>
<html class="loading" lang="en" data-textdirection="ltr" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <title>开饭啦外卖平台</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/vendors.css}">
</head>
<body class="vertical-layout vertical-menu 2-columns   menu-expanded fixed-navbar" data-open="click"
      data-menu="vertical-menu" data-color="bg-gradient-x-purple-blue" data-col="2-columns">
<nav class="header-navbar navbar-expand-md navbar navbar-with-menu navbar-without-dd-arrow fixed-top navbar-semi-light">
    <div class="navbar-wrapper">
        <div class="navbar-container content">
            <div class="collapse navbar-collapse show" id="navbar-mobile">
                <ul class="nav navbar-nav mr-auto float-left">
                    <li class="nav-item mobile-menu d-md-none mr-auto"><a
                            class="nav-link nav-menu-main menu-toggle hidden-xs" href="javascript:;"><i
                            class="ft-menu font-large-1"></i></a></li>
                    <li class="nav-item d-none d-md-block"><a class="nav-link nav-menu-main menu-toggle hidden-xs"
                                                              href="javascript:;"><i class="ft-menu"></i></a></li>
                    <li class="nav-item dropdown navbar-search"><a class="nav-link dropdown-toggle hide"
                                                                   data-toggle="dropdown" href="javascript:;"><i
                            class="ficon ft-search"></i></a>
                        <ul class="dropdown-menu">
                            <li class="arrow_box">
                                <form>
                                    <div class="input-group search-box">
                                        <div class="position-relative has-icon-right full-width">
                                            <input class="form-control" id="search" type="text"
                                                   placeholder="Search here...">
                                            <div class="form-control-position navbar-search-close"><i class="ft-x"></i>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </li>
                        </ul>
                    </li>
                </ul>
                <ul class="nav navbar-nav float-right">
                    <li class="dropdown dropdown-user nav-item"><a class=" nav-link dropdown-user-link"
                                                                   href="/admin/login"> <span class="username"><i
                            class="ft-power"></i>退出登录</span> </a></li>
                    <li class="dropdown dropdown-user nav-item"><a class="dropdown-toggle nav-link dropdown-user-link"
                                                                   href="javascript:;"> <span
                            class="username">Admin</span> <span class="avatar avatar-online"><img
                            th:src="@{/images/adminlogo.webp}" alt="avatar"></span> </a></li>
                </ul>
            </div>
        </div>
    </div>
</nav>
<div class="main-menu menu-fixed menu-light menu-accordion    menu-shadow " data-scroll-to-active="true">
    <div class="navbar-header">
        <ul class="nav navbar-nav flex-row">
            <li class="nav-item mr-auto"><a class="navbar-brand" href="/admin/index">
                <h3 class="brand-text">外卖系统管理员</h3>
            </a></li>
            <li class="nav-item d-md-none"><a class="nav-link close-navbar"><i class="ft-x"></i></a></li>
        </ul>
    </div>
    <div class="main-menu-content">
        <ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation">
            <li class=" nav-item active"><a th:href="@{/admin/index}"><i class="ft-home"></i><span class="menu-title">首页</span></a></li>
            <li class="nav-item "><a href="javascript:;"><i class="la la-medkit"></i><span
                    class="menu-title"> 商家管理</span></a>
                <ul class="menu-content">
                    <li><a class="menu-item" th:href="@{/admin/store}">商家入驻审核</a></li>
                </ul>
            </li>
            <li class="nav-item "><a href="javascript:;"><i class="ft-users"></i><span
                    class="menu-title"> 用户管理</span></a>
                <ul class="menu-content">
                    <li><a class="menu-item" th:href="@{/admin/user}">用户订单申诉审核</a></li>
                </ul>
            </li>
        </ul>
    </div>
    <div class="navigation-background"></div>
</div>
<div class="app-content content">
    <div class="content-wrapper">
        <div class="content-wrapper-before"></div>
        <div class="content-header row">
            <div class="content-header-left col-md-4 col-12 mb-2">
                <h3 class="content-header-title">商家入驻审核</h3>
            </div>
            <div class="content-header-right col-md-8 col-12">
                <div class="breadcrumbs-top float-md-right">
                    <div class="breadcrumb-wrapper mr-1">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a th:href="@{/admin/index}">主页</a></li>
                            <li class="breadcrumb-item active">商家入驻审核</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-body">
            <section class="file-browser">
                <div class="card" style="">
                    <div class="card-header">
                        <label th:text="${ '修改商家信息' }">修改审核状态</label>
                    </div>
                    <div class="iq-card-body">
                        <div class="topbtn">
                            <a th:href="@{/admin/store}" class="btn btn-info">返回商家入驻列表</a>
                        </div>
                        <form id="storeRegister" name="storeRegister" th:action="@{/admin/store}" method="post">
                            <!-- 第二步：在form表单中添加input输入框，来告诉SrpingBoot 提交什么请求方式（put，delete）
                             name=“—_method” 固定写法，value 属性指定的是我们要期望提交的请求方式：put,delete-->
                            <input type="hidden" name="_method" value="PUT" th:if="${null != store.storeId}">
                            <input type="hidden" name="storeId" th:value="${store.storeId}"
                                   th:if="${null != store.storeId}">
                            <div class="inputbox" style="width: 100%; max-width: 1100px; margin: 0 auto;">

                                <ul class="row">
                                    <li class="col-md-9">
                                        <div>
                                            <ul class="row">
                                                <li class=" col-md-4">
                                                    <h5 class="mt-2">店铺名称</h5>
                                                    <fieldset class="form-group">
                                                        <input disabled="disabled" type="text" class="form-control" name="storeName"
                                                               th:value="${store.storeName}">
                                                    </fieldset>
                                                </li>
                                                <li class=" col-md-4">
                                                    <h5 class="mt-2">手机号</h5>
                                                    <fieldset class="form-group">
                                                        <input disabled="disabled" type="text" class="form-control" name="storePhone"
                                                               th:value="${store.storePhone}">
                                                    </fieldset>
                                                </li>
                                                <li class=" col-md-4">
                                                    <h5 class="mt-2">邮箱</h5>
                                                    <fieldset class="form-group">
                                                        <input disabled="disabled" type="text" class="form-control" name="storeEmail"
                                                               th:value="${store.storeEmail}">
                                                    </fieldset>
                                                </li>
                                                <li class=" col-md-4">
                                                    <h5 class="mt-2">店家姓名</h5>
                                                    <fieldset class="form-group">
                                                        <input disabled="disabled" type="text" class="form-control" name="manageMan"
                                                               th:value="${store.manageMan}">
                                                    </fieldset>
                                                </li>
                                                <li class=" col-md-4">
                                                    <h5 class="mt-2">店铺类别</h5>
                                                    <fieldset class="form-group">
                                                        <input disabled="disabled" type="text" class="form-control" name="categoryId"
                                                               th:value="${store.categoryId}">
                                                    </fieldset>
                                                </li>
                                                <li class=" col-md-4">
                                                    <h5 class="mt-2">店铺地址</h5>
                                                    <fieldset class="form-group">
                                                        <input disabled="disabled" type="text" class="form-control" name="storeAdd"
                                                               th:value="${store.storeAdd}">
                                                    </fieldset>
                                                </li>
                                                <li class=" col-md-4">
                                                    <h5 class="mt-2">经营许可证</h5>
                                                    <fieldset class="form-group">
                                                        <input disabled="disabled" type="text" class="form-control" name="storeEmail"
                                                               th:value="${store.busLicense}">
                                                    </fieldset>
                                                </li>
                                                <li class=" col-md-4">
                                                    <h5 class="mt-2">健康许可证</h5>
                                                    <fieldset class="form-group">
                                                        <input disabled="disabled" type="text" class="form-control" name="healthLicense"
                                                               th:value="${store.healthLicense}">
                                                    </fieldset>
                                                </li>
                                                <li class=" col-md-4">
                                                    <h5 class="mt-2">店铺图标</h5>
                                                    <div class="imgbox">
<!--                                                        <input disabled="disabled" type="text" class="form-control" name="storeIcon">-->
                                                        <img class="roundimg" th:src="@{${store.storeIcon}}" width="120" name="imgStoreIcon" id="imgStoreIcon">
                                                    </div>
                                                </li>
                                                <li class="col-md-12">
                                                    <h5 class="mt-2">店铺介绍</h5>
                                                    <fieldset class="form-group">
                                                        <textarea  disabled="disabled" class="form-control" rows="5" name="storeIntroduce"
                                                                  th:text="${store.storeIntroduce}">店铺介绍</textarea>
                                                    </fieldset>
                                                </li>
                                                </li>
                                            </ul>
                                        </div>
                                </ul>
                            </div>


                            <div class="text-center">
                                <a class="btn btn-primary" th:href="@{/admin/store/auditSuccess/{id}(id=${store.storeId})}">审核通过 </a>
                            </div>
                            <div class="text-center">
                                <a class="btn btn-primary" th:href="@{/admin/store/auditFail/{id}(id=${store.storeId})}">审核不通过</a>
                            </div>
                        </form>
                    </div>

                </div>

            </section>
        </div>
    </div>
</div>

<!-- BEGIN VENDOR JS-->
<script th:src="@{/js/vendors.min.js}" type="text/javascript"></script>
<script th:src="@{/js/app-menu.js}" type="text/javascript"></script>
<script th:src="@{/js/app.js}" type="text/javascript"></script>
<script th:src="@{/js/echarts.min.js}" type="text/javascript"></script>
<script th:src="@{/laydate/laydate.js}" type="text/javascript"></script>
<script th:src="@{/js/takeout/goods.js}"></script>
<script th:src="@{/js/common-search.js}"></script>
<script th:src="@{/js/toastr.js}"></script>
<script>
    lay('#version').html('-v' + laydate.v);
    laydate.render({
        elem: '#date'
//  ,range: true
        , theme: '#6967ce'
    });
</script>

</body>
</html>